package com.example.demo1109.demo1;

public class Broker implements Show{
    private Actor actor;
    public Broker(Actor actor){
        this.actor=actor;
    }

    @Override
    public void sing() {
        negotiate();
        extend();
        actor.sing();
        acknowledge();
    }

    @Override
    public void dance() {
        negotiate();
        extend();
        actor.dance();
        acknowledge();
    }
    public void negotiate(){
        System.out.println("洽谈出场费");
    }
    public void extend(){
        System.out.println("向观众问好");
    }
    public void acknowledge(){
        System.out.println("向观众答谢");
    }
}
